package com.ft.adbix.core.view.dialog;

import android.content.Context;
import android.view.Gravity;
import android.view.ViewGroup;

import androidx.appcompat.app.AppCompatDialog;

import com.ft.adbix.core.R;
import com.ft.adbix.core.response.Ad;

public abstract class BaseAdDialog extends AppCompatDialog {

    protected Ad adData;

    public abstract int getDialogView();

    public BaseAdDialog(Context context, Ad adData) {
        super(context, R.style.AdBixDialogTheme);
        this.adData = adData;
        if (getWindow() != null) {
            getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
//            getWindow().setGravity(Gravity.CENTER);
        }
        setContentView(getDialogView());
        initView();
    }

    public abstract void initView();



}
